package com.itheima.domain;

import java.util.Date;

//给私有的成员变量赋值方式：
//setter方式
//构造方法
public class User {
    private String name;
    private int age;
    private Date birthday;

    private Address address;

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public User(){

    }

    public void init(){
       // System.out.println("初始化！！");
    }

    public void destroy(){
        //System.out.println("销毁！！");
    }
    public void eat(){
        System.out.println("吃你妹啊  迟迟吃" +
                "阿松大");
    }
}
